package com.zhang.sh.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {
    @RequestMapping(value = "/fallbackTest")
    public Map<String,String> fallBackController() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("code","500");
        map.put("message","连接失败");
        return map;
    }
}
